/*
 * Copyright 2009 BioTeam Inc
 * 
 * Licensed under License GNU LESSER GENERAL PUBLIC LICENSE version 3.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * http://www.gnu.org/copyleft/lesser.html
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package net.bioteam.appweb.gwt.apps.client.Util;

import com.smartgwt.client.types.Alignment;
import com.smartgwt.client.widgets.layout.HLayout;
import com.smartgwt.client.widgets.layout.Layout;
import com.smartgwt.client.widgets.layout.VLayout;

public class CenterPanel extends VLayout
{

	protected Layout contentPanel;
	public CenterPanel(int width, int height)
	{
		setWidth100();
		setHeight100();
		//this.setAlign(Alignment.CENTER);
		//this.setBackgroundColor("yellow");
		
		HLayout h=new HLayout();
		h.setHeight100();
		h.setWidth(width);
		h.setLayoutAlign(Alignment.CENTER);	
		//h.setBackgroundColor("blue");
		addMember(h);
		
	
		VLayout v=new VLayout();
		v.setWidth100();
		v.setHeight(height);
		v.setLayoutAlign(Alignment.CENTER);
		//v.setBackgroundColor("green");
		h.addMember(v);
		
		contentPanel=v;
		
		
	}

}
